<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<%
	String path=request.getContextPath();
%>
<script type="text/javascript" src="<%=path%>/fckeditor/fckeditor.js"></script>
<p>网友留言</p>
						<s:iterator value="comments.list" id="c" >
							<p >
								<font style="color:#1B75B1;">${c.username}</font>&nbsp;&nbsp;&nbsp;
								<span style="color:#525D76;">${c.datetime}</span>
							</p>
							<p style="background-color:#DBDBBE;width=80%;">${c.comment}</p>
						</s:iterator>
						<br/>
						<p align="center">当前第${comments.page.currentPage}页,共${comments.page.totalRecords}条留言。分${comments.page.totalPage}页显示</p>
						
						<p align="center">
							<form action="" method="post" name="dchPage" >
	  			 
							  	<input type="button" value="上一页" onclick="split(${comments.page.currentPage-1},${id});" ${comments.page.hasPrePage?'':'disabled'}/>
							  	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							  	<input type="button" value="下一页" onclick="split(${comments.page.currentPage+1},${id});" ${comments.page.hasNextPage?'':'disabled'}/>
							</form>
						</p>